#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    int a;
    scanf("%d", &a);
    if (a >= 10)
        printf("Danger++");
    if (a >= 4 && a <= 9)
        printf("Danger");
    if (a >= 0 && a <= 3)
        printf("Good");
    return 0;
}